package com.aos.erp.manager.mapper.review;

import com.aos.erp.common.dao.mapper.SuperMapper;
import com.aos.erp.manager.model.review.ExportRecordDetail;
import com.aos.erp.manager.model.review.vo.ReviewConditionVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface ExportRecordDetailMapper extends SuperMapper<ExportRecordDetail>  {

    /**
     * 分页查询导出明细列表
     * @param pageBean
     * @param param
     * @return
     */
    List<ExportRecordDetail> pageRecordList(IPage<ExportRecordDetail> pageBean, @Param("param") ReviewConditionVo param);

    @Update("update t_export_record_detail set import_time=now(), opt_type=2 where record_id=${recordId}")
    void updateForBackWrite(@Param("recordId") long recordId);
}
